//
//  Photograph.m
//  LoveOfPet
//
//  Created by 芦彬 on 15/11/14.
//  Copyright © 2015年 孔维. All rights reserved.
//

#import "Photograph.h"

@implementation Photograph

- (void)dealloc{
    [_uid release];
    [_city_name release];
    [_intro release];
    [_petname release];
    [_photo release];
    [_qq release];
    [_weibo release];
    [super dealloc];
}

- (instancetype)initWithDictionary:(NSDictionary *)dic{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

+ (Photograph *)photographWithDictionary:(NSDictionary *)dictionary{
    Photograph *photograph = [[Photograph alloc]initWithDictionary:dictionary];
    return [photograph autorelease];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqual:@"uid"]) {
        self.uid = [NSString stringWithFormat:@"%@", value];
    }else{
        [super setValue:value forKey:key];
    }
}


@end
